You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-deep-force-update

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-deep-force-update

Force-updates React component tree recursively

1.1.2
1x
Source
npmnpm
Version published
Weekly downloads
187K
-4.58%
Maintainers
3
Weekly downloads
 
Created
Source

react-deep-force-update

build status npm version npm downloads

Force-updates React component tree recursively.

Don’t use this in your application code!

You’ll only need this if you’re writing a React development tool or library like React Proxy and you want to enforce a deep update regardless of what component classes have to say.

Installation

npm install --save react-deep-force-update

Requires React 0.13 and newer.

Usage

import React from 'react'; // or 'react-native'
import getDeepForceUpdate from 'react-deep-force-update';

const deepForceUpdate = getDeepForceUpdate(React);
const instance = React.render(<Something />);

// Will force-update the whole rendered tree
// even if components in the middle of it
// define a strict shouldComponentUpdate().
deepForceUpdate(instance);

Credits

This project is based on the code written by @syranide.

License

MIT

Keywords

react

FAQs

Package last updated on 24 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts